package com.shengqin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shengqin.config.handlers.SummaryGraduationModelTypeHandler;
import com.shengqin.pojo.summary.SummaryGraduationModel;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "t_summary_graduation", autoResultMap = true)
public class SummaryGraduation {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String schoolName;
    private String sex;
    private String studyCode;
    private String address;
    private LocalDate birthday;
    private String nation;
    private String name;
    private BigDecimal score;
    @TableField(value = "total_list", typeHandler = SummaryGraduationModelTypeHandler.class)
    private List<SummaryGraduationModel> totalList;
    private String schoolYear;
    private Integer flag;
    private String createBy;
    private LocalDateTime createTime;
    private String updateBy;
    private LocalDateTime updateTime;
}
